<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
  </style>
  <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">  
  <style>
    html,body {
      font-size: calc(100vw / 7.5);
    }
    .swiper-slide img {
      display: block;
      /* max-width: 100%; */
      height: 5.13rem;
      object-fit: cover;
    }
    .swiper-pagination {
      position: absolute;
      display: flex;
      justify-content: center;
      z-index: 99;
      bottom: 20px;
    }
    .swiper-pagination-bullet {
      position: relative;
      width: 80px;
      height: 6px;
      margin: 0 10px;
      border-radius: 0;
      background-color: #fff;
    }
    .swiper-pagination-bullet::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 0;
      height: 100%;
      background-color: #f00;
    }
    .swiper-pagination-bullet-active::after {
      width: 100%;
      transition: all linear 3s;
    }

  </style>
</head>
<body>
  <div class="swiper-container">
    <div class="swiper-wrapper">
      <div class="swiper-slide"><img src="./images/slide1.jpg"></div>
      <div class="swiper-slide"><img src="./images/slide2.jpg"></div>
      <div class="swiper-slide"><img src="./images/slide3.jpg"></div>
    </div>
    <div class="swiper-pagination"></div>
  </div>
  <script src="https://unpkg.com/swiper/swiper-bundle.min.js"> </script>
  <script>
    var swiper = new Swiper('.swiper-container',{
      loop:true,
      autoplay:{
        disableOnInteraction:false,
      },
      pagination: {
      el: '.swiper-pagination',
      clickable: true,
      },
    });
  </script>
</body>
</html>